//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	EntityAttribute.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using System;

namespace Smart.Common.Entities
{
	/// <summary>
	/// Entity attribute
	/// </summary>
	[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
	public sealed class EntityAttribute : Attribute
	{
		private readonly string entityName;

		/// <summary>
		/// Entity attribute
		/// </summary>
		/// <param name="entityName">Entity internal name</param>
		public EntityAttribute(string entityName)
		{
			this.entityName = entityName;
		}

		/// <summary>
		/// Entity internal name
		/// </summary>
		public string EntityName
		{
			get { return entityName; }
		}
	}
}